package com.itheima.springbootcondition.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description:
 * @Version: V1.0
 */
@Target({ElementType.TYPE, ElementType.METHOD}) //当前自定义注解可以加在哪些和方法上
@Retention(RetentionPolicy.RUNTIME)             //注解生效的时机
@Documented                                     //生成java的DOC文档
@Conditional(ClassCondition.class)
public @interface ConditionOnClass {
    String[] value();
}
